﻿using System;
using System.Collections.Generic;
using System.Linq;
using FreeSql.DataAnnotations;
using System.Text;
using System.Threading.Tasks;

namespace BBCore.Core.Models.Samples
{
    /// <summary>
    /// 商品秒杀类
    /// </summary>
    public class HYJ_Product_Seckill
    {
        [Column(IsIdentity = true)]
        public int Id { get; set; }

        public string? Name { get; set; }

        public decimal Price { get; set; }

        public int Stock { get; set; }

        [Column(IsVersion = true)] // 乐观锁字段  
        public long Version { get; set; }
    }
}
